Skip to content

Fix requireSync within node#13

Merged
acrazing merged 1 commit into
acrazing:masterfrom
jkap:fix-requireSync-on-server
Dec 30, 2021
Merged

Fix requireSync within node#13
acrazing merged 1 commit into
acrazing:masterfrom
jkap:fix-requireSync-on-server

Conversation

@jkap

@jkap jkap commented Dec 23, 2021

Copy link
Copy Markdown
Contributor

Comparing against the output of the babel plugin, the comparison in
requireSync should be an identifier, not a string (otherwise, the
conditional will always be true).

Added a prepare npm script as well so that the built version can be used with git / non-published imports (needed for my own use, fine to remove it if needed).

Comparing against the output of the babel plugin, the comparison in
`requireSync` should be an identifier, not a string (otherwise, the
conditional will always be `true`).
@acrazing

Copy link
Copy Markdown
Owner

Good job, thank you.

@acrazing acrazing merged commit d353f8a into acrazing:master Dec 30, 2021
@acrazing

Copy link
Copy Markdown
Owner

This is released in version 1.0.3, you can try it now.

npm i -D typescript-loadable-components-plugin@latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants